//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.aidong.dao.wills;

import com.aidong.dao.wills.BaseDao;
import com.aidong.model.wills.PayAli;
import org.springframework.stereotype.Repository;

@Repository
public class PayAliDao extends BaseDao<PayAli, Integer> {
	public PayAliDao() {
	}

	public PayAli getByBarCode(String barCode) {
		return (PayAli)this.getByWhere("barCode=:p1", new Object[]{barCode});
	}

	public boolean updatePayStatus(PayAli payAli) {
		String sql = "update PayAli set status=:p1, payTime=:p2, payUser=:p3, alipayNo=:p4 where autoId=:p5";
		return this.updateBySql(sql, new Object[]{payAli.getStatus(), payAli.getPayTime(), payAli.getPayUser(), payAli.getAlipayNo(), payAli.getAutoId()}) > 0;
	}
}
